﻿Public Class LoaiPinDTO

    Protected ma_loai As Integer
    Protected ten_loai As String
    Protected don_gia As Integer
    Public Property MaLoai() As Integer
        Get
            Return ma_loai
        End Get
        Set(ByVal value As Integer)
            ma_loai = value
        End Set
    End Property
    Public Property TenLoai() As String
        Get
            Return ten_loai
        End Get
        Set(ByVal value As String)
            ten_loai = value
        End Set
    End Property
    Public Property DonGia() As Integer
        Get
            Return don_gia
        End Get
        Set(ByVal value As Integer)
            don_gia = value
        End Set
    End Property
    Public Sub New()
        TenLoai = ""
        DonGia = 0
    End Sub
    Public Sub New(ByVal tenloai As String)
        Me.TenLoai = tenloai
    End Sub
    Public Sub New(ByVal tenloai As String, ByVal dongia As Integer)
        Me.TenLoai = tenloai
        Me.DonGia = dongia
    End Sub
    Public Sub New(ByVal maloai As Integer, ByVal tenloai As String, ByVal dongia As Integer)
        Me.MaLoai = maloai
        Me.TenLoai = tenloai
        Me.DonGia = dongia
    End Sub
End Class
